package com.shop.cloud.model.request.api;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * @author xiaojun.wang
 */
@ToString(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class ApiGoodsOrderMakeRequestModel extends ApiRestfulRequest {

    private static final long serialVersionUID = -3286520204644035655L;

    @JsonProperty("userid")
    @ApiModelProperty(value = "用户id", example = "1", required = true)
    private String userid;
    
    @JsonProperty("id")
    @ApiModelProperty(value = "商品id", example = "1", required = true)
    private String id;
    
    @JsonProperty("type")
    @ApiModelProperty(value = "类型，1：商品，2：活动，3：旅游", example = "", required = true)
    private String type;
    
    @JsonProperty("payWay")
    @ApiModelProperty(value = "支付方式，1:余额，2：积分", example = "", required = true)
    private String payWay;
    
    @JsonProperty("delivery")
    @ApiModelProperty(value = "配送方式，1:到店自提，2：门店配送，3：快递配送", example = "", required = true)
    private String delivery;
    
    @JsonProperty("otherID")
    @ApiModelProperty(value = "其他id，delivery=1表示门店id；delivery=2,3时，表示收货地址id", example = "", required = true)
    private String otherID;
    
    @JsonProperty("remark")
    @ApiModelProperty(value = "备注", example = "", required = true)
    private String remark;
    
    @JsonProperty("price")
    @ApiModelProperty(value = "商品单价", example = "", required = true)
    private String price;
    
    @JsonProperty("verify")
    @ApiModelProperty(value = "加密字符串", example = "", required = true)
    private String verify;
    
    @JsonProperty("feature")
    @ApiModelProperty(value = "规格值id数组,例：[1,2]", example = "", required = true)
    private String[] feature;
    
    @JsonProperty("count")
    @ApiModelProperty(value = "数量", example = "", required = true)
    private String count;

    
	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getPayWay() {
		return payWay;
	}

	public void setPayWay(String payWay) {
		this.payWay = payWay;
	}

	public String getDelivery() {
		return delivery;
	}

	public void setDelivery(String delivery) {
		this.delivery = delivery;
	}

	public String getOtherID() {
		return otherID;
	}

	public void setOtherID(String otherID) {
		this.otherID = otherID;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public String[] getFeature() {
		return feature;
	}

	public void setFeature(String[] feature) {
		this.feature = feature;
	}

	public String getCount() {
		return count;
	}

	public void setCount(String count) {
		this.count = count;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getVerify() {
		return verify;
	}

	public void setVerify(String verify) {
		this.verify = verify;
	}
}
